<div style="margin-top:70px;">
    <div>
        <div class="btn btn-default btn-sm text-back" style="display: inline-block;" ui-sref="app.me.detail"><i
                class="glyphicon glyphicon-menu-left"></i>返回
        </div>
        <h4 class="pull-right" style="padding-top: 15px;">{{currentState.title}}</h4>
    </div>
    <div style="margin:15px 0;">
        <form class="form-horizontal" role="form" name="resetPwdForm">
            <div class="form-group">
                <label for="oldPassword" class="col-sm-2 control-label">旧密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="oldPassword" placeholder="请输入原始密码" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.oldPassword">
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="newPassword" class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="newPassword" placeholder="请输入6-18个字符" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.newPassword">
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="newRepassword" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="newRepassword" placeholder="请输入6-18个字符"
                           minlength="6" maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required
                           ng-model="_user.newRepassword">
                </div>
            </div>
            <div class="form-group" style="text-align: center">
                <button class="btn btn-primary" style="width:200px;margin:0 auto 5px;"
                        ng-disabled="!resetPwdForm.$valid || _user.newPassword !== _user.newRepassword"
                        ng-click="updatePwd(_user)">确认修改
                </button>
            </div>
        </form>
    </div>
</div>